# 代理：用第三方ip发送请求

import requests

proxies = {
    "https": "https://115.197.74.3:8118"  # 注意添加了端口号
}
resp = requests.get("https://www.baidu.com", proxies=proxies)
resp.encoding = 'utf-8'
print(resp.text)
